const rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;

/**
 * 剔除空格
 * @param value
 * @returns {string}
 */
function trim(value) {
  return value == null ? "" : (value + "").replace(rtrim, "")
}

export {trim};
